package ZuoYe15;

public class WanQuanPingFan {

	public static void main(String[] args) {

		int i = -100;
		while (true) {

			for (int w = 1; w < 100; w++) {
				for (int h = 1;h < 100; h++) {
					if (w * w == i + 100 && h * h == i + 100+168) {
						System.out.println(i);
						break;
					}
				}
			}

			i++;
		}

	}

}
